package com.hdwe.tools.pm.domain.bo;

import com.hdwe.tools.pm.domain.PmTaskStep;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 任务步骤业务对象 pm_task_step
 *
 * @author s
 * @date 2024-12-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = PmTaskStep.class, reverseConvertGenerate = false)
public class PmTaskStepBo extends BaseEntity {

    /**
     * 主键
     */
    private Long id;

    /**
     * 任务id
     */
    @NotNull(message = "任务id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long taskId;

    /**
     * 任务类型
     */
    @NotBlank(message = "任务类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String taskType;

    /**
     * 步骤名称
     */
    @NotBlank(message = "步骤名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String stepName;

    /**
     * 任务步骤
     */
    @NotBlank(message = "任务步骤不能为空", groups = { AddGroup.class, EditGroup.class })
    private String stepCode;

    /**
     * 步骤状态（ready未开始 doing进行中 finished完成 blocked阻塞）
     */
    @NotBlank(message = "步骤状态（ready未开始 doing进行中 finished完成 blocked阻塞）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String stepStatus;

    /**
     * 步骤排序
     */
    @NotNull(message = "步骤排序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long stepOrder;

    /**
     * 备注
     */
    private String remark;

    /**
     * 状态（enable正常 disable停用）
     */
    @NotBlank(message = "状态（enable正常 disable停用）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;


}
